﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heavy_Metals
{
    public partial class YJQYPD_FXJS : Form
    {
        public YJQYPD_FXJS()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.listBox3.SelectedIndex != -1)
            {
                this.listBox2.Items.Add(this.listBox3.SelectedItem.ToString());
                this.listBox3.Items.RemoveAt(this.listBox3.SelectedIndex);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (this.listBox2.SelectedIndex != -1)
            {
                this.listBox3.Items.Add(this.listBox2.SelectedItem.ToString());
                this.listBox2.Items.RemoveAt(this.listBox2.SelectedIndex);
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            int count = this.listBox3.Items.Count;
            int i = 0;
            for (i = 0; i < count; i++)
            {
                this.listBox2.Items.Add(this.listBox3.Items[i].ToString());
            }
            this.listBox3.Items.Clear();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            int count = this.listBox2.Items.Count;
            int i = 0;
            for (i = 0; i < count; i++)
            {
                this.listBox3.Items.Add(this.listBox2.Items[i].ToString());
            }
            this.listBox2.Items.Clear();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.listBox1.SelectedIndex != -1)
            {
                this.listBox3.Items.Add("a图层");
                this.listBox3.Items.Add("b图层");
                this.listBox3.Items.Add("c图层");
                this.listBox3.Items.Add("d图层");
                this.listBox3.Items.Add("e图层");
                this.listBox3.Items.Add("f图层");
            }
        }

        private void button5_Click(object sender, EventArgs e)
        {
            MessageBox.Show("运行成功","操作提示");
            YJQYPD_FXJS_JG jg = new YJQYPD_FXJS_JG();
            jg.Show();
        }


    }
}
